﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{

    /// <summary>
    /// 表示彩种的状态
    /// </summary>
    public enum LotteryState
    {

        /// <summary>
        /// 锁定的
        /// </summary>
        Locked = 0,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 1
    }

    public static class LtteryStateEx
    {
        public static string GetName(this LotteryState state)
        {
            switch (state)
            { 
                case LotteryState.Locked:
                    return "禁用";
                case LotteryState.Normal:
                    return "可用";
                default:
                    throw new ArgumentOutOfRangeException("state");
            }
        }
    }
}
